<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>首页</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<link rel="stylesheet" href="css/mui.min.css">
		<link rel="stylesheet" type="text/css" href="fonts/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="css/by_m.css" />
	</head>

	<body>
		<header class=" search-nav on-blur">
			<div class="search-box-cover"></div>
			<div class="search-box">
				<a class="iconfont icon-z-code"></a>
				<a class="iconfont icon-xiaoxi mui-pull-right"></a>
				<form action="">
					<div class="searchbar_head">
						<div class="searchBox">
							<i class="iconfont icon-sousuo" href=""></i>
							<input type="text" placeholder="搜索商品" class="search-txt" />
						</div>
					</div>
				</form>
			</div>
		</header>
		<nav class="mui-bar mui-bar-tab">
			<a class="mui-tab-item mui-active" href="index.html">
				<span class="mui-icon iconfont icon-shouye"></span>
				<span class="mui-tab-label">首页</span>
			</a>
			<a class="mui-tab-item" href="all.html">
				<span class="mui-icon iconfont icon-icon04"></span>
				<span class="mui-tab-label">分类</span>
			</a>
			<a class="mui-tab-item" href="find.html">
				<span class="mui-icon iconfont icon-faxian"></span>
				<span class="mui-tab-label">发现</span>
			</a>
			<a class="mui-tab-item" href="cart.html">
				<span class="mui-icon iconfont icon-gouwuche"><span class="mui-badge">9</span></span>
				<span class="mui-tab-label">购物车</span>
			</a>
			<a class="mui-tab-item" href="#tabbar-with-map">
				<span class="mui-icon iconfont icon-wode"></span>
				<span class="mui-tab-label">我的</span>
			</a>
		</nav>
		<div id="slider" class="mui-slider">
			<div class="mui-slider-group mui-slider-loop">
				<!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
				<div class="mui-slider-item mui-slider-item-duplicate">
					<a href="#">
						<img src="images/temp/banner01.jpg">
					</a>
				</div>
				<!-- 第一张 -->
				<div class="mui-slider-item">
					<a href="#">
						<img src="images/temp/banner01.jpg">
					</a>
				</div>
				<!-- 第二张 -->
				<div class="mui-slider-item">
					<a href="#">
						<img src="images/temp/banner01.jpg">
					</a>
				</div>
				<!-- 第三张 -->
				<div class="mui-slider-item">
					<a href="#">
						<img src="images/temp/banner01.jpg">
					</a>
				</div>
				<!-- 第四张 -->
				<div class="mui-slider-item">
					<a href="#">
						<img src="images/temp/banner01.jpg">
					</a>
				</div>
				<!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播) -->
				<div class="mui-slider-item mui-slider-item-duplicate">
					<a href="#">
						<img src="images/temp/banner01.jpg">
					</a>
				</div>
			</div>
			<div class="mui-slider-indicator">
				<div class="mui-indicator mui-active"></div>
				<div class="mui-indicator"></div>
				<div class="mui-indicator"></div>
				<div class="mui-indicator"></div>
			</div>
		</div>
		<div class="mui-content">
			<div class="index-nav">
				<ul class="mui-table-view mui-grid-view mui-grid-9">
					<li class="mui-table-view-cell mui-media mui-col-sm-3">
						<a href="#">
							<img src="images/nav_list01.png">
							<div class="mui-media-body">京东超市</div>
						</a>
					</li>
					<li class="mui-table-view-cell mui-media mui-col-sm-3">
						<a href="#">
							<img src="images/nav_list02.png">
							<div class="mui-media-body">全球购</div>
						</a>
					</li>
					<li class="mui-table-view-cell mui-media mui-col-sm-3">
						<a href="#">
							<img src="images/nav_list03.png">
							<div class="mui-media-body">充值中心</div>
						</a>
					</li>
					<li class="mui-table-view-cell mui-media mui-col-sm-3">
						<a href="#">
							<img src="images/nav_list04.png">
							<div class="mui-media-body">服装城</div>
						</a>
					</li>
					<li class="mui-table-view-cell mui-media mui-col-sm-3">
						<a href="#">
							<img src="images/nav_list05.png">
							<div class="mui-media-body">京东金融</div>
						</a>
					</li>
					<li class="mui-table-view-cell mui-media mui-col-sm-3">
						<a href="#">
							<img src="images/nav_list06.png">
							<div class="mui-media-body">领劵</div>
						</a>
					</li>
					<li class="mui-table-view-cell mui-media mui-col-sm-3">
						<a href="#">
							<img src="images/nav_list07.png">
							<div class="mui-media-body">物流查询</div>
						</a>
					</li>
					<li class="mui-table-view-cell mui-media mui-col-sm-3">
						<a href="#">
							<img src="images/nav_list08.png">
							<div class="mui-media-body">我的关注</div>
						</a>
					</li>
				</ul>
			</div>
			<div class="mui-card letters">
				<div class="info"><span>京东<em>快报</em>：</span>6.28格力超级品牌日 空调满1000减200</div>
				<a href="">更多</a>
			</div>
			<div class="index-title">
				<b></b><span>爱生活</span><b></b>
			</div>
			<div class="index-products">
				<ul class="list01">
					<li>
						<a href=""><img src="images/temp/pro01.jpg"></a>
					</li>
					<li>
						<a href=""><img src="images/temp/pro02.jpg"></a>
					</li>
					<li>
						<a href=""><img src="images/temp/pro03.jpg"></a>
					</li>
					<li>
						<a href=""><img src="images/temp/pro04.jpg"></a>
					</li>
				</ul>
				<ul class="list02">
					<li>
						<a href=""><img src="images/temp/pro05.jpg"></a>
					</li>
					<li>
						<a href=""><img src="images/temp/pro06.jpg"></a>
					</li>
					<li>
						<a href=""><img src="images/temp/pro07.jpg"></a>
					</li>
					<li>
						<a href=""><img src="images/temp/pro08.jpg"></a>
					</li>
				</ul>
			</div>
			<!--广告切换-->
			<div id="slider02" class="mui-slider">
			<div class="mui-slider-group mui-slider-loop">
				<!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
				<div class="mui-slider-item mui-slider-item-duplicate">
					<a href="#">
						<img src="images/temp/adv_02.jpg">
					</a>
				</div>
				<!-- 第一张 -->
				<div class="mui-slider-item">
					<a href="#">
						<img src="images/temp/adv_01.jpg">
					</a>
				</div>
				<!-- 第二张 -->
				<div class="mui-slider-item">
					<a href="#">
						<img src="images/temp/adv_02.jpg">
					</a>
				</div>
				<!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播) -->
				<div class="mui-slider-item mui-slider-item-duplicate">
					<a href="#">
						<img src="images/temp/adv_01.jpg">
					</a>
				</div>
			</div>
			<div class="mui-slider-indicator">
				<div class="mui-indicator mui-active"></div>
				<div class="mui-indicator"></div>
			</div>
		</div>
			<div class="index-title">
				<b></b><span>享品质</span><b></b>
			</div>
			<div class="index-products">
				<ul class="list01">
					<li>
						<a href=""><img src="images/temp/pro01.jpg"></a>
					</li>
					<li>
						<a href=""><img src="images/temp/pro02.jpg"></a>
					</li>
					<li>
						<a href=""><img src="images/temp/pro03.jpg"></a>
					</li>
					<li>
						<a href=""><img src="images/temp/pro04.jpg"></a>
					</li>
				</ul>
				<ul class="list02">
					<li>
						<a href=""><img src="images/temp/pro05.jpg"></a>
					</li>
					<li>
						<a href=""><img src="images/temp/pro06.jpg"></a>
					</li>
					<li>
						<a href=""><img src="images/temp/pro07.jpg"></a>
					</li>
					<li>
						<a href=""><img src="images/temp/pro08.jpg"></a>
					</li>
				</ul>
			</div>
		</div>
       <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script src="js/mui.min.js"></script>
		<script type="text/javascript" charset="utf-8">
			mui.init({
				swipeBack: true //启用右滑关闭功能
			});
			
			mui('body').on('tap','a',function(){document.location.href=this.href;});
			
			var gallery = mui("#slider");
			gallery.slider({
				interval: 500 //自动轮播周期，若为0则不自动播放，默认为0；
			});
			
			var gallery = mui("#slider02");
			gallery.slider({
				interval: 500 //自动轮播周期，若为0则不自动播放，默认为0；
			});
			
			//顶部滚动一定距离透明背景变化
			$(window).scroll(function() {
				if ($(document).scrollTop() < 20) {
					$(".on-blur .search-box-cover").css("opacity","0");
				} else if ($(document).scrollTop() > 21 && $(document).scrollTop() < 120) {
					$(".on-blur .search-box-cover").css("opacity","0.5");
					console.log(".on-blur .search-box-cover");
				} else {
					$(".on-blur .search-box-cover").css("opacity","0.8");
				}
				

			})
		</script>
	</body>

</html>